/**
 * 
 */
package br.unifor.mia.cd.middleware.arcademis.marshalable;

import br.unifor.mia.cd.middleware.util.MarshalableUtil;

/**
 * @author landim
 *
 */
public class DefaultMarshaller implements Marshaller {

	/**
	 * @see br.unifor.mia.cd.middleware.arcademis.marshalable.Marshaller#getFieldValue(java.lang.String)
	 */
	public Object getFieldMarshalValue(String fieldName, Object obj) {
		return MarshalableUtil.getProperty(obj, fieldName);
	}

	/**
	 * @see br.unifor.mia.cd.middleware.arcademis.marshalable.Marshaller#getFieldUnMarshalValue(java.lang.String, java.lang.Object, java.lang.Object)
	 */
	public Object getFieldUnMarshalValue(String fieldName, Object obj, Object value) {
		return value;
	}

}
